<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>构造函数继承</title>
	</head>
	<body>
		<script >
			
			function Person(name,age){
				this.name = name
				this.age = age
			}

			function Student(name,age,price){
				// 强制改变了上下文，相当于 this.name = name ... 放到了这里执行
				Person.call(this,name,age)
				this.price = price
			}
		</script>
	</body>
</body>
</html>
